package com.woniuxy.classdeans.service.impl;

import com.woniuxy.classdeans.mapper.TeamInstructorMapper;
import com.woniuxy.classdeans.service.TeamInstructorService;
import com.woniuxy.commons.entity.wyh.TeamInstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wangyanhui
 * @date 2020/7/31 - 9:48
 */
@Service
public class TeamInstructorServiceImpl implements TeamInstructorService {

    @Autowired
    private TeamInstructorMapper teamInstructorMapper;


   //根据班级id查询班级任课老师信息
    @Override
    public TeamInstructor getByTeid(int teId) {
        return teamInstructorMapper.getByTeid(teId);
    }
    //新增班级任课老师信息
    @Override
    public int addTeamInstructor(TeamInstructor teamInstructor) {
        return teamInstructorMapper.addTeamInstructor(teamInstructor);
    }

    //更新班级任课老师信息
    @Override
    public int updateTeamInstructor(TeamInstructor teamInstructor) {
        return teamInstructorMapper.updateTeamInstructor(teamInstructor);
    }

    //获取所有班级任课老师排班
    @Override
    public List<TeamInstructor> getAll() {
        return teamInstructorMapper.getAll();
    }
}
